<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/8/1 0001
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ include file="/WEB-INF/page/include/taglib.jsp"%>
<%  String path =request.getContextPath();
    String realpath =request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <title>口子集合轮播图</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <link rel="stylesheet" href="${ctx }/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="${ctx }/css/font_eolqem241z66flxr.css" media="all" />
    <link rel="stylesheet" href="${ctx }/css/list.css" media="all" />

    <script>
        var ctx = "${ctx}";
    </script>
</head>
<body>
<div class="childrenBody" id="rrapp">
    <input type="hidden" id="adminId"
           value="<shiro:principal property="id"/>" />
    <blockquote class="layui-elem-quote list_search">
        <shiro:hasPermission name="sys:admin:save">
            <div class="layui-inline">
                <a class="layui-btn layui-btn-normal cardAdd_btn"><i
                        class="layui-icon">&#xe608;</i> 添加图片</a>
            </div>
        </shiro:hasPermission>
        <%--<shiro:hasPermission name="sys:admin:delete">--%>
            <%--<div class="layui-inline">--%>
                <%--<a class="layui-btn layui-btn-danger batchDel"><i--%>
                        <%--class="layui-icon">&#xe640;</i>批量删除</a>--%>
            <%--</div>--%>
        <%--</shiro:hasPermission>--%>
    </blockquote>

    <table class="layui-table" lay-data="{ url:'${ctx}/jieqianbanners/list', method:'post',  page:true, id:'listTable'}" lay-filter="list">
        <thead>
        <tr>
            <th lay-data="{type:'checkbox', fixed: 'left'}"></th>
            <th lay-data="{field:'id',width:40 }">ID</th>
            <th lay-data="{field:'image',width:400, templet: '#titleTpl'}">图片</th>
            <th lay-data="{field:'image',width:400}">图片地址</th>
            <th lay-data="{field:'link',width:200}">链接</th>
            <th lay-data="{field:'sort',width:200}">排序</th>
            <th lay-data="{fixed: 'right', align:'center', toolbar: '#bar' ,width:150 }">操作</th>
        </tr>
        </thead>
    </table>
    <script type="text/javascript" src="${ctx }/layui/layui.js"></script>
    <script type="text/javascript" src="${ctx }/page/kouzijihe/jieqianbanners.js"></script>
    <script type="text/html" id="bar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    <script type="text/html" id="titleTpl">
        <img src="${realpath}{{d.image}}"/>
    </script>
</div>
</body>
</html>
